package com.algo.pattern.composite;

/**
 * 文件节点
 */
public class FileNode extends AbstractNode {
    /**
     * 文件名称
     */
    private String name;

    public FileNode(String name) {
        this.name = name;
    }

    @Override
    public void println() {
        System.out.println(name);
    }

}
